<%@ page import="bcared.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <%
  
  		ServiceOrder so = new ServiceOrder(1500);
  		ServiceOrder so2 = new ServiceOrder(1502);
  		
   %>
  
  <body>

    Service order status id: <%=so.getSoStatusID() %><br/>
    desc: <%=so.getSOStatusDesc() %> <br/><br />
    
    <%
    so.setSoStatusID(8);
    
    so.update();
    //so.populate();
     %>
    <p><%=so.getOpenDate() %></p>
    
    <p>service order status id should be 1, and it is currently: <%=so.getSoStatusID() %></p>
    <p>service order status description should be "complete" and it is currently: <%=so.getSOStatusDesc() %></p>
    <br/>
    <br/>
    <br/>
    <%
    	//CheckInOut ch = new CheckInOut(500, 1, "", false);
    	for (int i = 0; i < so2.getChecks().size(); i++) {
    	%>
    	
    		<%=so2.getChecks().get(i).getActionNotes() %>
    		
    	
    	<%
    	}
    
    %>
    

    
  </body>
</html>
